#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int n = 0;
	int m = 0;
	int i = 0;
	int mid = 0;
	scanf("%d %d", &n, &m);
	for (i = 0; i < 32; i++)
	{
		if ((n & 1) != (m & 1))
			mid++;
		n = n >> 1;
		m = m >> 1;
	}
	printf("%d\n", mid);
	return 0;
}